package com.mmsj;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

public class HomeActivity extends AppCompatActivity {

    @SuppressLint("SetTextI18n")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_home);
        // 获取数据
        Intent intent = getIntent();
        Bundle bundle = intent.getExtras();
        assert bundle != null;
        String username = bundle.getString("username");
        TextView welcome = findViewById(R.id.welcome);
        welcome.setText("欢迎您，" + username);

    }
}